package com.zeratul.demo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zeratul.common.mybatis.core.domain.BaseEntity;
import com.zeratul.demo.domain.vo.EmployeeVo;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

/**
 * 职工实体类
 */
@TableName(value = "employees", excludeProperty = {"createBy", "updateBy"})
@Data
@AutoMapper(target = EmployeeVo.class)
public class Employee extends BaseEntity {

    /**
     * 职工姓名
     */
    @TableField("name")
    private String name;

    /**
     * 年龄
     */
    @TableField("age")
    private Integer age;

    /**
     * 家庭地址
     */
    @TableField("address")
    private String address;
}